package com.lexian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author testjava
 * @since 2021-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Goods对象", description="商品信息")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品编号")
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Long goodsId;

    @ApiModelProperty(value = "所属类别")
    private Long categoryId;

    @ApiModelProperty(value = "商品名")
    private String name;

    @ApiModelProperty(value = "商品图")
    private String img;

    @ApiModelProperty(value = "商品单价")
    private Double unitPrice;

    @ApiModelProperty(value = "商品计量单位")
    private String unit;

    @ApiModelProperty(value = "商品状态")
    private Integer status;

    @ApiModelProperty(value = "商品重量")
    private Double weight;

    @ApiModelProperty(value = "商品销售时间")
    private Date onsaleTime;

    @ApiModelProperty(value = "商品库存")
    private Double inventory;

    @ApiModelProperty(value = "商品已销售数量")
    private Integer saleCount;


}
